package com.fho4565.packet;

import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class CommonEventHandler {
    @SubscribeEvent
    public static void onCommonSetup(FMLCommonSetupEvent event) {
        event.enqueueWork(KeyCommandPacketHandler::registerPackets);
        event.enqueueWork(PlanCommandPacketHandler::registerPackets);
        event.enqueueWork(DisplayCommandPacketHandler::registerPackets);
    }
}
